package processcontrol;

import java.util.Scanner;

/**
 * @author shkstart
 * @date 2022/4/7 - 21:54
 */
public class IfTest05 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入你的身高(cm)：");
        int height = scan.nextInt();
        System.out.println("请输入你的财产(千万)：");
        double money = scan.nextDouble();
        System.out.println("你是否帅不(true / false)：");
        boolean faceValue = scan.nextBoolean();

        if (height > 180 && money > 10000000 && faceValue == true ) {
            System.out.println("我一定要嫁给他!!!");
        }else if ( height > 180 || money > 10000000 || faceValue == true ) {
            System.out.println("嫁吧，比上不足，比下有余。");
        }else {
            System.out.println("不嫁！");
        }
    }
}
